package br.com.application.activities;

import br.com.application.pojos.Mensagens;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

public class MensagemActivity extends Activity {

	private TextView txtTitulo;
	private TextView txtDataInicial;
	private TextView txtDataFinal;
	private TextView txtConteudo;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mensagem);
		Intent it = getIntent();
		int position = it.getIntExtra("position", 0);
		Mensagens msg = WelcomeActivity.msgs.get(position);
		txtTitulo = (TextView) findViewById(R.id.txtTitulo);
		txtConteudo = (TextView) findViewById(R.id.txtConteudo);
		txtDataFinal = (TextView) findViewById(R.id.txtDataFinal);
		txtDataInicial = (TextView) findViewById(R.id.txtDataInicial);
		txtTitulo.setText(msg.getTitulo());
		txtDataInicial.setText(msg.getDataInicial());
		txtDataFinal.setText(msg.getDataFinal());
		txtConteudo.setText(msg.getConteudo());
	}

	
}
